package com.example;

/**
 * @desc:
 * @author: Shoko
 * @date: 2025/5/25
 */
public class Alarm implements ResponseDevice{
    @Override
    public void response(TempEvent event) {
        if (event.getTemp() > 35) { // 假设35度以上报警
            System.out.println("报警器: 温度" + event.getTemp() + "℃危险，发出警报！");
        }
    }
}
